public class Test {public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    System.out.println("请输入你的姓名：");
    String name = scanner.nextLine();
    System.out.println(name);
    System.out.println("请输入你的年龄：");
    int age = scanner.nextInt();
    System.out.println(age);

       /* int n1 = scanner.nextInt();
        System.out.println(n1);

        float f = scanner.nextFloat();
        System.out.println(f);*/
}
}
